<template>
  <div :class="[sendReceive === 1 ? 'global-message-me':'global-message-user']">
    <AudioInfo :info="info" :id="id" :isMe="sendReceive !== 0" />
  </div>

</template>

<script>
import Jindouyun from '../../../../utils/jindouyun'
import AudioInfo from './AudioInfo'
const _jindouyun = new Jindouyun({
  userId: '1111435842045702146',
  header: {},
  token: ''
})
export default {
  props: ['info', 'id'],
  components: { AudioInfo },
  computed: {
    getUrl: function () {
      return _jindouyun.getDownloadUrl({ isPublic: false, fileId: this.info.sourceId })
    },
    sendReceive: function () {
      return this.info.isMe ? 1 : 0
    }
  }
}
</script>
